---
title: "Grid Auto Rows"
description: "Utilities for controlling the size of implicitly-created grid rows."
---

import plugin from 'tailwindcss/lib/plugins/gridAutoRows'
import { Variants } from '@/components/Variants'
import { Disabling } from '@/components/Disabling'

export const classes = { plugin }

## Usage

Use the `auto-rows-{size}` utilities to control the size implicitly-created grid rows.

```html
<div class="grid grid-flow-row **auto-rows-max**">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>
```

## Responsive

To control the grid-auto-rows property at a specific breakpoint, add a `{screen}:` prefix to any existing grid-auto-rows utility. For example, use `md:auto-rows-min` to apply the `auto-rows-min` utility at only medium screen sizes and above.

```html
<div class="grid grid-flow-row auto-rows-max **md:auto-rows-min**">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>
```

For more information about Tailwind's responsive design features, check out the [Responsive Design](/docs/responsive-design) documentation.

## Customizing

By default, Tailwind includes four general purpose grid-auto-rows utilities. You can customize these in the `theme.gridAutoRows` section of your `tailwind.config.js` file.

```js
  // tailwind.config.js
  module.exports = {
    theme: {
      extend: {
        gridAutoRows: {
          '2fr': 'minmax(0, 2fr)',
        }
      }
    }
  }
```

Learn more about customizing the default theme in the [theme customization documentation](/docs/theme#customizing-the-default-theme).

### Variants

<Variants plugin="gridAutoRows" name="grid-auto-rows" />

### Disabling

<Disabling plugin="gridAutoRows" name="grid-auto-rows" />
